package io.zhengsh.juc._2synchronized1.biasedlock;

import io.zhengsh.juc._2synchronized1.status.BiasedLockingBulkRebiasTest;
import org.openjdk.jol.info.ClassLayout;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class BiasedLockDelayTest {

    private static Logger log = LoggerFactory.getLogger(BiasedLockingBulkRebiasTest.class);

    public static void main(String[] args) throws InterruptedException {
        Object obj1 = new Object();
        System.out.println(ClassLayout.parseInstance(obj1).toPrintable());
        System.out.println();
        Thread.sleep(5000);
        Object obj2 = new Object();
        System.out.println(ClassLayout.parseInstance(obj2).toPrintable());
    }
}
